<?php
namespace app\index\validate;

use think\Validate;

class Site extends Validate
{
    protected $rule = [
        'post_type'   => 'require|eq:add_apply',
        'data.link' => 'require',
        'data.name' => 'require',
        'data.remake' => 'require',
        'data.qq' => 'require|number',
        'data.captcha' => 'require',
    ];

    protected $message = [
        'post_type.require'   => '非法请求!',
        'post_type.eq'   => '非法请求!!',
        'data.qq.number'   => 'QQ号只能填写数字'
    ];
}